package com.molichuxing.gateway.bff.user.entity.response;

import com.molichuxing.services.property.UserSexEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @author liyg
 * 2019-08-13
 * 用户详情vo
 * 
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserDetailVo extends UserVo{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	 

	@ApiModelProperty(value = "昵称")
    private String nickName;

	@ApiModelProperty(value = "头像")
    private String head;

	@ApiModelProperty(value = "性别 (1:男, 0：女)")
    private Integer sex;
	
	@ApiModelProperty(value = "性别 Str")
    private String sexStr;

	@ApiModelProperty(value = " 生日")
    private String birthday;

	@ApiModelProperty(value = " 区Id")
    private Integer regionId;
    
	@ApiModelProperty(value = " 驾驶证号")
    private String licenseCode;

	@ApiModelProperty(value = " 准驾车型")
    private String model;
   
    public void setSex(Integer sex) {
    	this.sex=sex;
    	this.sexStr= sex==null ? null : UserSexEnum.getName(sex);
    }


}
